<?php $this->beginContent('/layouts/main'); ?>
<div class="container">
    <div class="span-18">
        <div id="content">
            <?php echo $content; ?>
        </div><!-- content -->
    </div>
    
    <aside id="sidebar2"><!-- sidebar2 -->
        <?php if(!Yii::app()->user->isGuest):?>       
            <h3>Did You Know?</h3>
            <ul>
                <li><?php echo CHtml::link('Create New Post',array('post/create')); ?></li>
                <li><?php echo CHtml::link('Manage Posts',array('post/admin')); ?></li>
                <li><?php echo CHtml::link('Approve Comments',array('comment/index')) . ' (' . Comment::model()->pendingCommentCount . ')'; ?></li>
                <li><?php echo CHtml::link('Logout',array('site/logout')); ?></li>
            </ul>
        <?php endif; ?>
    </aside> <!-- sidebar -->
    
</div>
<?php $this->endContent(); ?>